hi everyone

i embedded a flv player in my page-node-lightbox2.tpl.php. but when i try to play something, it doesnt work, i can't even seem to click it (no cursor showing on the play button rollover).

here the code i use to embed the player

 <p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript'>
var s1 = new SWFObject('<?php print base_path() ; ?>files/player.swf','player','350','20','9');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode', 'transparent');
s1.addParam('flashvars','file=<?php print base_path() ; ?>files/audio/auto1_0.mp3');
s1.write('preview');
</script>

i tried setting the z-index for the #preview paragraph higher than the lightbox, but that doesn't change anything.

and i also embedded the player in a non-lightbox page, and then it works..

thanx in advance!

Comments

stella’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry for the delay in responding. Are you trying to open the flash video in the lightbox? Or are you trying to play a video in the background, under a lightbox? What browsers does this happen in and on what platforms? Can you provide me with a link to a site where this is happening? My contact form is enabled if you wish to do so privately.

Are you trying to open a node page in a lightbox that is displaying a video? If so, is this an automatically handled link? If not, what is the html you are using to generate the links?

30equals’s picture

hi stella, now it's my turn to say sorry for the delay

it's mainly firefox which doesn't work. on windows

the flash video is embedded in the lightbox page (page-node-lightbox2.tpl.php)

i kinda worked around it with autoplaying the vid..

tahxn in advance

stella’s picture

I got one to work on my test site with the code you provided, once I added the following line:

<script type='text/javascript' src='swfobject.js'></script>

Is this still a problem for you? If so can you provide a link to your site? My contact form is enabled if you wish to do so privately.

Cheers,
Stella

stella’s picture

Oh you may need to use the dev version of the module.

stella’s picture

Try the newer release: 5.x-2.9.

Cheers,
Stella

stella’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Marking as "won't fix" since no more information forthcoming in over a month. Please feel free to re-open the issue if you can provide more info.

Cheers,
Stella